﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace VirtualBook
{
    public class PageSet
    {
        public PageSet(BitmapImage b1, BitmapImage b2)
        {
            ImageBrush brushL = new ImageBrush();
            ImageBrush brushR = new ImageBrush();

            brushL.ImageSource = b1;
            brushR.ImageSource = b2;

            brushL.Stretch = Stretch.UniformToFill;
            brushR.Stretch = Stretch.UniformToFill;

            brushL.AlignmentX = AlignmentX.Left;
            brushR.AlignmentX = AlignmentX.Right;

            brushL.AlignmentY = AlignmentY.Bottom;
            brushR.AlignmentY = AlignmentY.Bottom;

            LHBrush = brushL;
            RHBrush = brushR;
        }

        public PageSet(BitmapImage b1)
        {
            ImageBrush brushL = new ImageBrush();
            SolidColorBrush brushR = new SolidColorBrush();

            brushL.ImageSource = b1;
            brushL.Stretch = Stretch.UniformToFill;
            brushL.AlignmentX = AlignmentX.Left;
            brushL.AlignmentY = AlignmentY.Bottom;
            LHBrush = brushL;

            brushR.Color = Colors.White;
            RHBrush = brushR;
        }

        public Brush LHBrush { get; private set; }
        public Brush RHBrush { get; private set; }
    }
}
